package com.lu.pojo.functionInterface;

/**
 * @author luzhenfang
 * @date 2020 07 13
 * @description 函数型接口
 */
public class Function {
    public static void main(String[] args) {
        System.out.println(strHandler("\t\t\t哈哈哈", str -> str.trim()));
    }
    // 参数类型,返回值
    public static String strHandler(String str, java.util.function.Function<String,String> fun){
       return fun.apply(str);
    }
}
